<?php
require_once("db.php");
$fileList=getFile();
$r=new ResourceDB();
foreach($fileList as $file)
{
$guid=create_guid();
	$new_name=$guid.".mp4";
	$old_name=$file;
	//移动文件
	RemoveFile($GLOBALS['fileSourcePath'].$old_name,$GLOBALS['fileDistPath'].$new_name);
	$r->AddResource($old_name,$new_name);
}

?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title>导入中……</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<a href="import.php">导入完成点击返回</a>
</body>
</html>
